<?php
	Util::stage("Class inits");

	$Logger = Logger::getInstance(LOGS_DIR."/ad_list.log");
	$T = new Templater("tortilla");
//	$Cache = DataCache::getInstance();
//	$DB = Mysql::getInstance();
//	$Links = Links::getInstance();
//	$Drills = Drills::getInstance();

	/// ======================================================================================
	/// Rendering HTML code

	Util::stage("HTML Rendered");


	/// Language definitions

	if (isset($_GET["lang"]))
		$CURRENT_LANG = $_GET["lang"];
	else
		$CURRENT_LANG = DEFAULT_LANG;

	include(LANGS_DIR."/define.php");
	include(LANGS_DIR."/".$LANG_ASSOC[$CURRENT_LANG]);
	$T->assign("LANG", $LANG);

	/// What template to display

	$T->Display("index.html");
?>
